import request from '@/http/index.js'
export default {
    getCategory(data = {}) {
        return request({
            url: "/product/getCategory",
            method: "POST",
            data: data
        })
    },

    //获取全部商品信息
    getAllProduct(data = {}) {
        return request({
            url: "/product/getAllProduct",
            method: "POST",
            data: data
        })
    },
    //获取分类商品信息
    getProductByCategory(data = {}) {
        return request({
            url: "/product/getProductByCategory",
            method: "POST",
            data: data
        })
    },
    //搜索商品信息
    getProductBySearch(data = {}) {
        return request({
            url: "/product/getProductBySearch",
            method: "POST",
            data: data
        })
    },
}